package com.yzh.luckydraw.infrastructure.dao;

import com.yzh.dbrouter.annotation.DBRouter;
import com.yzh.luckydraw.infrastructure.po.UserTakeActivityCount;
import org.apache.ibatis.annotations.Mapper;
/**
 * @description 针对表【user_take_activity_count(用户活动参与次数表)】的数据库操作Mapper
 * @Entity com.yzh.luckydraw.infrastructure.po.UserTakeActivityCount
 */
@Mapper
public interface IUserTakeActivityCountDao {
    /**
     * 查询用户领取次数信息
     * @param userTakeActivityCountReq
     */
    @DBRouter(key = "uId")
    UserTakeActivityCount queryUserTakeActivityCount(UserTakeActivityCount userTakeActivityCountReq);

    /**
     * 插入领取次数信息
     * @param userTakeActivityCount
     */
//    @DBRouter(key = "uId")
    void insert(UserTakeActivityCount userTakeActivityCount);

    /**
     * 更新领取次数信息
     * @param userTakeActivityCount
     * @return
     */
//    @DBRouter(key = "uId")
    int updateLeftCount(UserTakeActivityCount userTakeActivityCount);
}
